home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / VELENG10.ZIP / PROTO.H < prev    next >
C/C++ Source or Header  |  1997-07-27  |  2KB  |  62 lines

  1.  
  2. #ifndef max
  3. #define max(a,b) ((a)>(b) ? (a) : (b))
  4. #endif
  5.  
  6. #ifndef min
  7. #define min(a,b) ((a)<(b) ? (a) : (b))
  8. #endif
  9.  
  10. /* Prototypes !!! */
  11.  
  12. void merge(void);
  13. void screen_on(void);
  14. void screen_off(void);
  15. void shuffle(void);
  16. void fatal_error(char *);
  17. short bin_compare(unsigned char *,unsigned char *);
  18. short try_to_win(struct board *);
  19. void free_bin_tree(struct bintree *);
  20. short evaluation_function(struct board *);
  21. short test_dbtree_position(struct dbtree *,unsigned char *);
  22. short heuristic_search(struct node *,long);
  23. long readkey(void);
  24. short resources_available(void);
  25. struct dbtree *init_dbase(unsigned char *,short);
  26. void copy_dbtree(void);
  27. void update_dbtree(struct bintree *,struct dbtree *,short);
  28. void flush_dbtree(struct dbtree *);
  29. void flush_tree(struct dbtree *,FILE *);
  30. void free_dbtree(struct dbtree *);
  31. void add_dbtree(struct dbtree *,unsigned char *,short);
  32. short makemove(struct board *,short);
  33. short undomove(struct board *,short);
  34. short endgame(struct board *);
  35. short ia_compute_move(struct board *);
  36. void dropscreen(struct board *);
  37. void clear_instances(void);
  38. void initscreen(void);
  39. void whomoves(struct board *);
  40. void dumpboard(struct board *);
  41. short start_pn_search(struct board *);
  42. void debug_function(struct board *);
  43. void update_log(struct board *);
  44. short heuristic_play_best(struct board *,long);
  45. char **allocate_matrix(struct board *);
  46. void free_matrix(char **,struct board *);
  47. void build_adjacency_matrix(char **,struct board *);
  48. void dump_no_adjacencies(char **,struct board *);
  49. short problem_solver(struct board *,char **,short,FILE *);
  50. void change_sequence(void);
  51. int my_random(unsigned short);
  52. short check_book(struct board *,unsigned char *,short);
  53. short check_presence(struct board *,short);
  54. void outtextxy(int,int,char *);
  55. int process_mouse_board(struct board *,int,int);
  56. int process_mouse_menu(int,int);
  57.  
  58. unsigned long pseudo32(unsigned long *);
  59.  
  60. long fileln(FILE *);
  61.  
  62.